<template>
    <div class="home_container">
        <el-container>
            <el-header>
                <v-header></v-header>
            </el-header>

            <el-container>

                <el-aside :width="isCollapse ? '64px' : '200px'" style="background-color: #D3DCE6">
                    <v-aside :getIsCollapse="getIsCollapse"></v-aside>
                </el-aside>

                <el-main>
                    <router-view></router-view>
                </el-main>

            </el-container>
                <!--侧边栏-->

        </el-container>
    </div>
</template>

<script>
import vHeader from "@/components/vHeader"
import vAside from "@/components/vAside";
export default{
    data(){
        return{
            isCollapse:''
        }
    },
    components:{
        vHeader,
        vAside
    },
    methods:{
        getIsCollapse(name){
            this.isCollapse = name
        }
    }
}
</script>

<style scoped>
.home_container{
    height: 100%;
    width: 100%;
}

.el-container{
    background-color: lightgray;
}

.el-header {
    padding: 0;
    font-size: 20px;
    line-height: 60px;
    display: flex;
    justify-content: space-between;
    background-color: white;
}

.el-main {
    color: #333;
    text-align: center;
    line-height: 160px;
}
.el-aside {
    background-color: gray;
    color: #333;

}

.el-container{
    height: 100%;
}


</style>
